import request from '@/utils/request'

// 查询患者基本信息列表
export function listFlowPatientInfo(query) {
    return request({
        url: '/flow/FlowPatientInfo/list',
        method: 'get',
        params: query
    })
}

// 查询患者基本信息详细
export function getFlowPatientInfo(id) {
    return request({
        url: '/flow/FlowPatientInfo/' + id,
        method: 'get'
    })
}

// 新增患者基本信息
export function addFlowPatientInfo(data) {
    return request({
        url: '/flow/FlowPatientInfo',
        method: 'post',
        data: data
    })
}

// 修改患者基本信息
export function updateFlowPatientInfo(data) {
    return request({
        url: '/flow/FlowPatientInfo',
        method: 'put',
        data: data
    })
}

// 删除患者基本信息
export function delFlowPatientInfo(id) {
    return request({
        url: '/flow/FlowPatientInfo/' + id,
        method: 'delete'
    })
}

// 查询患者审批列表
export function listFlowApprovalRecord(query) {
    return request({
        url: '/flow/FlowApprovalRecord/list',
        method: 'get',
        params: query
    })
}
// 审批
export function auditApprovalRecord(data) {
    return request({
        url: '/flow/FlowApprovalRecord/approval',
        method: 'post',
        data: data
    })
}